<?php

namespace app\index\controller;

use think\Controller;

/**
 * Class Base
 * @package app\index\controller
 */
class Base extends Controller
{
    protected $beforeActionList = [
        'verifyNotLogin'
    ];

    protected function verifyNotLogin()
    {
        if (!session('?user')) {
            $this->redirect('index/index');
        }
    }
}
